import {createApp} from 'vue'
import '@/style/index.css'
import App from './App.vue'

import Varlet from '@varlet/ui'
import '@varlet/ui/es/style'

import naive from 'naive-ui'


import {createPinia} from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

import router from "@/router";

const meta = document.createElement('meta')

meta.name = 'naive-ui-style'

document.head.appendChild(meta)

createApp(App)
    .use(router)
    .use(pinia)
    .use(naive)
    .use(Varlet)
    .mount('#app')